package Test;
import MyOs.*;
public class PcbQueue_Test {
      public static void main(String[] args){
        ProcessManager p=new ProcessManager();
        Pcb a=p.createProcess("cc", 100);
        Pcb b= p.createProcess("c", 10);
       // System.out.println(" "+a.getPid());
        //System.out.println(" "+a.getName());
        //System.out.println(" "+a.getRemainTime());
        //p.destroyProcess(2);
        //p.destroyAllProcess();
        Pcb c=p.createProcess("ccc", 1000);
        Pcb d=p.createProcess("cccc", 11);
        Pcb e=p.createProcess("ccccc", 12);
        Pcb f=p.createProcess("cccccc", 13);
        //p.showInfo();
        //p.destroyProcess(6);
        PcbQueue q=new PcbQueue();
        q.add2Running(c);q.add2Running(f);
        q.add2Ready(a);q.add2Ready(d);
        q.add2Waiting(b);q.add2Waiting(e);
        //q.removeFromReady(2);
        //q.show();
        //q.removeFromRunning(3);
        //q.removeFromReady(1);
        //q.removeFromWaiting(2);
        q.show();
      }
}